package com.turing.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.turing.orm.model.domain.common.BaseDo;
import io.swagger.annotations.ApiModel;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
* @Description 
* @Author livin
* @Date 2022-02-22
*/
@ApiModel(value ="")
@Data
@EqualsAndHashCode(callSuper = false)
@Builder(toBuilder = true)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("role_app_function_privilege")
public class RoleFunctionPrivilege extends BaseDo<RoleFunctionPrivilege> {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("role_id")
    private Integer roleId;

    @TableField("privilege_id")
    private Integer privilegeId;

    @TableField("parent_privilege_id")
    private Integer parentPrivilegeId;

    @TableField("created_time")
    private LocalDateTime createdTime;

    @TableField("updated_time")
    private LocalDateTime updatedTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}

